package com.cityp.service.impl;

import com.cityp.bean.Manager;
import com.cityp.bean.User;
import com.cityp.mapper.ManagerMapper;
import com.cityp.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired
    ManagerMapper ManagerMapper;

    @Override
    public int AddOne(Manager Manager) {
        return ManagerMapper.AddOne(Manager);
    }

    @Override
    public int changeOne(String id, String para) {
       return ManagerMapper.changeState(id,para);
    }

    @Override
    public List<Manager> viewAll() {
        return ManagerMapper.viewAll();
    }

    @Override
    public List<User> viewUser() {
        return ManagerMapper.viewUser();
    }

    @Override
    public int deleteOne(String id) {
        return ManagerMapper.deleteOne(id);
    }
}
